package com.sun.showcase.biz.mall.service;

import java.util.List;

import com.sun.showcase.client.domain.mall.FreightDetail;
import com.sun.showcase.client.query.mall.FreightDetailQuery;
import com.sun.showcase.client.vo.FreightFeeQueryEntity;
import com.sun.showcase.pojo.DataGrid;
public interface FreightDetailService{

	/**
	 * 获得数据表格
	 * 
	 * @param bug
	 * @return
	 */
	public DataGrid datagrid(FreightDetailQuery freightDetailQuery);

	/**
	 * 添加
	 * 
	 * @param freightDetailQuery
	 */
	public FreightDetail add(FreightDetailQuery freightDetailQuery);

	/**
	 * 修改
	 * 
	 * @param freightDetailQuery
	 */
	public void update(FreightDetailQuery freightDetailQuery) ;
	
	/**
	 *  根据条件更新部分字段
	 * 
	 * @param freightDetailQuery
	 */
	public void updatePart(FreightDetailQuery freightDetailQuery) ;

	/**
	 * 物理删除
	 * 
	 * @param ids
	 */
	public void delete(java.lang.String[] ids);
	
	/**
	 * 逻辑删除 更新状态位
	 * 
	 * @param ids
	 */
	public void deletePt(java.lang.String[] ids);

	/**
	 * 获得
	 * 
	 * @param FreightDetail
	 * @return
	 */
	public FreightDetail get(FreightDetailQuery freightDetailQuery);
	
	
	/**
	 * 获得
	 * 
	 * @param obid
	 * @return
	 */
	public FreightDetail get(String id);
	
	/**
	 * 获取所有数据
	 */
	public List<FreightDetailQuery> listAll(FreightDetailQuery freightDetailQuery);

	public Long getExistRangeCount(FreightDetailQuery freightDetailQuery);
	
	public FreightDetail getFreight(String freightId,Double totalPayAmount);
	
	public Double getFreightFee(List<FreightFeeQueryEntity> info);
}
